import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/specialEquipment/devicethreetube/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
// export const getDetail = (id) => {
//   return request({
//     url: '/api/specialEquipment/devicethreetube/detail',
//     method: 'get',
//     params: {
//       id
//     }
//   })
// }

export const remove = (ids) => {
  return request({
    url: '/api/specialEquipment/devicethreetube/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/specialEquipment/devicethreetube/save',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/specialEquipment/devicethreetube/update',
    method: 'post',
    data: row
  })
}
// 添加审批人员
export const setApproveUser = (row) => {
  return request({
    url: '/api/specialEquipment/devicethreetube/addApprover',
    method: 'post',
    data: row
  })
}
// 审批
export const approveRelatedParty = (bizId, isPass, remark) => {
  return request({
    url: '/api/specialEquipment/devicethreetube/approval',
    method: 'post',
    data: {
      bizId,
      isPass,
      remark
    }
  })
}
